<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<%@taglib prefix="sj" uri="/struts-jquery-tags"%>
<%@page import="com.lemurian.bankdata.lite.utils.GlobalFunction" %>
<%@page import="com.lemurian.bankdata.action.business.PenandatangananAction" %>

<div class="header"><span><span class="ico gray administrator"></span>Akta, Kepengurusan dan Dokumen Klien</span>
</div><!-- End header -->	
<div class="content" >
	<s:form name="formBody" id="validation_demo">
	    <s:hidden name="start"/>
	    <s:hidden name="count"/>
	    <s:hidden name="orderBy"/>
	    <s:hidden name="ascDesc"/>
	    <s:hidden name="previousPage"/>
	    <s:hidden name="actionMethod" value="%{actionMethod}"/>
	    <s:hidden name="subaction"/>
	    <s:hidden name="id" value="%{@com.lemurian.bankdata.lite.utils.GlobalFunction@encodeParameter(id)}"/>
	    <s:token/>
	    
	    <div class="widgets">
	    
					<div class="section" >
						<label> Nama Klien </label>   
						<div> <label> <s:property value="klien.debitur.name"/> </label> </div>
					</div>
			
			<s:if test="isPPAT == 1">
	    	<!-- PPAT -->
	    	<div class="widget">
		    	<div class="header"><span><span class="ico gray window"></span>  PPAT  </span></div>
				<div class="content">
					<div class="section" >
						<label style="width:13%"> akta </label>   
						<div style="width: 85%; margin-left:18%;">
							<div class="aktakepengurusan">
								<!-- s:checkboxlist list="listAktaPPAT" name="aktaPPATIds" listKey="%{@com.lemurian.bankdata.lite.utils.GlobalFunction@encodeParameter(id)}"
												listValue="name" value="aktaPPATIds"/-->
								<s:iterator value="listAktaPPAT">
									<s:set name="aktaId" value="%{@com.lemurian.bankdata.lite.utils.GlobalFunction@encodeParameter(id)}" />
									<input type="checkbox" name="aktaPPATIds" id="<s:property value="aktaId"/>"
										value="<s:property value="aktaId"/>" <s:if test="listAktaPPATId.contains(id)">checked="checked"</s:if> class="chkbox" />
									<s:label for="aktaId"><s:property value="name"/></s:label>
									<div class="clear"></div>
								</s:iterator>
								<div class="clear"></div>
							</div>
						</div>
						<div class="clear"></div>
					</div>
					
					<div class="section" >
						<label style="width:13%"> kepengurusan </label>   
						<div style="width: 85%; margin-left:18%;"> 
							<div class="aktakepengurusan">
								<!-- s:checkboxlist list="listKepengurusanPPAT" name="kepengurusanPPATIds" listKey="%{@com.lemurian.bankdata.lite.utils.GlobalFunction@encodeParameter(id)}"
												listValue="name" value="kepengurusanPPATIds"/-->
								<s:iterator value="listKepengurusanPPAT">
									<s:set name="kepengurusanId" value="%{@com.lemurian.bankdata.lite.utils.GlobalFunction@encodeParameter(id)}" />
									<input type="checkbox" name="kepengurusanPPATIds" id="<s:property value="kepengurusanId"/>"
										value="<s:property value="kepengurusanId"/>" <s:if test="listKepengurusanPPATId.contains(id)">checked="checked"</s:if> class="chkbox" />
									<s:label for="kepengurusanId"><s:property value="name"/></s:label>
									<div class="clear"></div>
								</s:iterator>
								<div class="clear"></div>
							</div>
						</div>
						<div class="clear"></div>
					</div>
				</div>
			</div>
			</s:if>

			<s:if test="isNotaris == 1">
			<!-- NOTARIS -->
			<div class="widget">
		    	<div class="header"><span><span class="ico gray window"></span>  NOTARIS  </span></div>
				<div class="content">
					<div class="section">
						<label style="width:13%">PT ? </label>
					    <div style="width: 85%; margin-left:18%;">
					    	<s:checkbox name="PT"></s:checkbox>
					    </div>
					</div>
					<div class="section" >
						<label style="width:13%"> akta </label>   
						<div style="width: 85%; margin-left:18%;">
							<div class="aktakepengurusan">
								<!-- s:checkboxlist list="listAktaNotaris" name="aktaNotarisIds" listKey="%{@com.lemurian.bankdata.lite.utils.GlobalFunction@encodeParameter(id)}"
												listValue="name" value="aktaNotarisIds"/-->
								<s:iterator value="listAktaNotaris">
									<s:set name="aktaId" value="%{@com.lemurian.bankdata.lite.utils.GlobalFunction@encodeParameter(id)}" />
									<input type="checkbox" name="aktaNotarisIds" id="<s:property value="aktaId"/>"
										value="<s:property value="aktaId"/>" <s:if test="listAktaNotarisId.contains(id)">checked="checked"</s:if> class="chkbox" />
									<s:label for="aktaId"><s:property value="name"/></s:label>
									<div class="clear"></div>
								</s:iterator>
								
								<div class="clear"></div>
							</div>
						</div>
						<div class="clear"></div>
					</div>

					<div class="section" >
						<label style="width:13%"> kepengurusan </label>   
						<div style="width: 85%; margin-left:18%;">
							<div class="aktakepengurusan">
								<!-- s:checkboxlist list="listKepengurusanNotaris" name="kepengurusanNotarisIds" listKey="%{@com.lemurian.bankdata.lite.utils.GlobalFunction@encodeParameter(id)}"
												listValue="name" value="kepengurusanNotarisIds"/-->
								<s:iterator value="listKepengurusanNotaris">
									<s:set name="kepengurusanId" value="%{@com.lemurian.bankdata.lite.utils.GlobalFunction@encodeParameter(id)}" />
									<input type="checkbox" name="kepengurusanNotarisIds" id="<s:property value="kepengurusanId"/>"
										value="<s:property value="kepengurusanId"/>" <s:if test="listKepengurusanNotarisId.contains(id)">checked="checked"</s:if> class="chkbox" />
									<s:label for="kepengurusanId"><s:property value="name"/></s:label>
									<div class="clear"></div>
								</s:iterator>
								<div class="clear"></div>
							</div>
						</div>
						<div class="clear"></div>
					</div>
				</div>
			</div>
			</s:if>
			
			<!-- DOKUMEN PELENGKAP -->
			<div class="widget">
		    	<div class="header"><span><span class="ico gray window"></span>  DOKUMEN PELENGKAP  </span></div>
				<div class="content">
					<div class="section" >
						<label style="width:13%"> Jenis Dokumen </label>
						<div style="width: 85%; margin-left:18%;">
							
							<s:iterator value="listDokumenHelper" status="sequence">
								<s:set name="dokumenId" value="%{@com.lemurian.bankdata.lite.utils.GlobalFunction@encodeParameter(jenis.id)}" />
								<div style="float: left; width:50%">
									<input type="checkbox" name="jenisDokumenIds" id="<s:property value="dokumenId"/>"
											value="<s:property value="dokumenId"/>" <s:if test="listDokumenId.contains(jenis.id)">checked="checked"</s:if> class="chkbox"/>
									<s:label for="dokumenId"><s:property value="jenis.name"/></s:label>
									
									<s:select
										list="listKeteranganDokumen" 
										listKey="%{@com.lemurian.bankdata.lite.utils.GlobalFunction@encodeParameter(id) + ';' + @com.lemurian.bankdata.lite.utils.GlobalFunction@encodeParameter(jenis.id)}"
										listValue="name"
										name="keteranganDokumenIds"
										value="%{@com.lemurian.bankdata.lite.utils.GlobalFunction@encodeParameter(@com.lemurian.bankdata.action.business.PenandatangananAction@lookingForKetDokumen(jenis.id, klien.id)) + ';' + @com.lemurian.bankdata.lite.utils.GlobalFunction@encodeParameter(jenis.id)}"
										headerKey="" 
										headerValue="Select below" 
										disabled="%{readOnly}" 
										tooltip="" 
									/>
									
									<div class="clear"></div>
								</div>
							</s:iterator>
						</div>
						<div class="clear"></div>
					</div>

				</div>
			</div>

			
			<div>
				<div class="section last" style="margin-top: 10px; margin-left:18%;">
					<s:submit action="%{actionMethod}" value="simpan" cssClass="uibutton confirm" cssStyle="width:120px"/>
					<a href="PenandatangananAction_list.do" class="uibutton special">kembali</a>			
				</div>
			</div>
		</div>
	</s:form>
</div>


